package com.example.lets;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;

/**
 * Created by Administrator on 2015/12/15.
 */
public class CommentPullableView extends FrameLayout implements Pullable {

    //View imgView;

    public CommentPullableView(Context context)
    {
        super(context);
        //getChildView();
    }

    public CommentPullableView(Context context, AttributeSet attrs)
    {
        super(context, attrs);
        //getChildView();
    }

    public CommentPullableView(Context context, AttributeSet attrs, int defStyle)
    {
        super(context, attrs, defStyle);
        //getChildView();
    }

    //private void getChildView() {
    //    imgView = getChildAt(1);
    //}

    @Override
    public boolean canPullDown()
    {
        return false;
    }

    @Override
    public boolean canPullUp()
    {
        if (EventActivity.hasNew) {
            EventActivity.hasNew = false;
            return false;
        }
        return EventActivity.isBottom;
    }
}
